const mongoose = require('../index')

const {getNowTime} = require('../../utils')
const { mongo } = require('mongoose')

const advSchema = new mongoose.Schema({
    advTitle:String,
    advOrder:{
        type:Number,
        default:50
    },
    advHref:String,
    advType:{
        type:Number,
        default:1
    },
    advPic:String,
    addTime:{
        type:String,
        default:getNowTime()
    },
    updateTime:{
        type:String,
        default:getNowTime()
    }
})

module.exports = mongoose.model('advList',advSchema,'advList')